\hypertarget{_com_port_8h}{\section{libemb/inc/\+Com\+Port.h 文件参考}
\label{_com_port_8h}\index{libemb/inc/\+Com\+Port.\+h@{libemb/inc/\+Com\+Port.\+h}}
}
{\ttfamily \#include \char`\"{}I\+O\+Device.\+h\char`\"{}}\\*
{\ttfamily \#include $<$termios.\+h$>$}\\*
{\ttfamily \#include $<$unistd.\+h$>$}\\*
\subsection*{类}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_com_port}{Com\+Port}
\begin{DoxyCompactList}\small\item\em 串口设备类. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{枚举}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{_com_port_8h_a5918fe826d52ebeb80f0702003cafa06}{B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E} \{ \\*
{\bfseries B\+A\+U\+D\+\_\+1200} = 1200, 
{\bfseries B\+A\+U\+D\+\_\+2400} = 2400, 
{\bfseries B\+A\+U\+D\+\_\+4800} = 4800, 
{\bfseries B\+A\+U\+D\+\_\+9600} = 9600, 
\\*
{\bfseries B\+A\+U\+D\+\_\+19200} = 19200, 
{\bfseries B\+A\+U\+D\+\_\+38400} = 38400, 
{\bfseries B\+A\+U\+D\+\_\+57600} = 57600, 
{\bfseries B\+A\+U\+D\+\_\+115200} = 115200, 
\\*
{\bfseries B\+A\+U\+D\+\_\+460800} = 460800
 \}
\item 
enum \hyperlink{_com_port_8h_a1de03bb13aeacac6843d140c989c3d68}{D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E} \{ {\bfseries D\+A\+T\+A\+\_\+5} =5, 
{\bfseries D\+A\+T\+A\+\_\+6}, 
{\bfseries D\+A\+T\+A\+\_\+7}, 
{\bfseries D\+A\+T\+A\+\_\+8}
 \}
\item 
enum \hyperlink{_com_port_8h_a8cc6d042f35aadef20feb961e7994206}{S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E} \{ {\bfseries S\+T\+O\+P\+\_\+1} =1, 
{\bfseries S\+T\+O\+P\+\_\+2}
 \}
\item 
enum \hyperlink{_com_port_8h_a60b68ab60f93ff7acecde69ec4c8c009}{P\+A\+R\+I\+T\+Y\+\_\+\+E} \{ {\bfseries P\+A\+R\+I\+T\+Y\+\_\+\+N\+O\+N\+E} =0, 
{\bfseries P\+A\+R\+I\+T\+Y\+\_\+\+O\+D\+D}, 
{\bfseries P\+A\+R\+I\+T\+Y\+\_\+\+E\+V\+E\+N}, 
{\bfseries P\+A\+R\+I\+T\+Y\+\_\+\+S\+P\+A\+C\+E}
 \}
\item 
enum \hyperlink{_com_port_8h_a04d52696306a4d09ad2e16b88b29c0f8}{F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E} \{ {\bfseries F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+N\+O\+N\+E} =0, 
{\bfseries F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+H\+W}, 
{\bfseries F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+S\+W}
 \}
\item 
enum \hyperlink{_com_port_8h_af845d7b11d8c598fdad5f291e08b3053}{C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E} \{ \\*
{\bfseries C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+B\+A\+U\+D\+R\+A\+T\+E} =0, 
{\bfseries C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+D\+A\+T\+A\+B\+I\+T\+S}, 
{\bfseries C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+S\+T\+O\+P\+B\+I\+T\+S}, 
{\bfseries C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+P\+A\+R\+I\+T\+Y}, 
\\*
{\bfseries C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+F\+L\+O\+W\+C\+T\+R\+L}
 \}
\end{DoxyCompactItemize}


\subsection{枚举类型说明}
\hypertarget{_com_port_8h_a5918fe826d52ebeb80f0702003cafa06}{\index{Com\+Port.\+h@{Com\+Port.\+h}!B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E@{B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E}}
\index{B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E@{B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf B\+A\+U\+D\+R\+A\+T\+E\+\_\+\+E}}}\label{_com_port_8h_a5918fe826d52ebeb80f0702003cafa06}
串口波特率值 \hypertarget{_com_port_8h_af845d7b11d8c598fdad5f291e08b3053}{\index{Com\+Port.\+h@{Com\+Port.\+h}!C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E@{C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E}}
\index{C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E@{C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf C\+O\+M\+\_\+\+A\+T\+T\+R\+\_\+\+E}}}\label{_com_port_8h_af845d7b11d8c598fdad5f291e08b3053}
串口属性类型 \hypertarget{_com_port_8h_a1de03bb13aeacac6843d140c989c3d68}{\index{Com\+Port.\+h@{Com\+Port.\+h}!D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E@{D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E}}
\index{D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E@{D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf D\+A\+T\+A\+B\+I\+T\+S\+\_\+\+E}}}\label{_com_port_8h_a1de03bb13aeacac6843d140c989c3d68}
串口数据位值 \hypertarget{_com_port_8h_a04d52696306a4d09ad2e16b88b29c0f8}{\index{Com\+Port.\+h@{Com\+Port.\+h}!F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E@{F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E}}
\index{F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E@{F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf F\+L\+O\+W\+C\+T\+R\+L\+\_\+\+E}}}\label{_com_port_8h_a04d52696306a4d09ad2e16b88b29c0f8}
串口流控位值 \hypertarget{_com_port_8h_a60b68ab60f93ff7acecde69ec4c8c009}{\index{Com\+Port.\+h@{Com\+Port.\+h}!P\+A\+R\+I\+T\+Y\+\_\+\+E@{P\+A\+R\+I\+T\+Y\+\_\+\+E}}
\index{P\+A\+R\+I\+T\+Y\+\_\+\+E@{P\+A\+R\+I\+T\+Y\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{P\+A\+R\+I\+T\+Y\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf P\+A\+R\+I\+T\+Y\+\_\+\+E}}}\label{_com_port_8h_a60b68ab60f93ff7acecde69ec4c8c009}
串口校验位值 \hypertarget{_com_port_8h_a8cc6d042f35aadef20feb961e7994206}{\index{Com\+Port.\+h@{Com\+Port.\+h}!S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E@{S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E}}
\index{S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E@{S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E}!Com\+Port.\+h@{Com\+Port.\+h}}
\subsubsection[{S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf S\+T\+O\+P\+B\+I\+T\+S\+\_\+\+E}}}\label{_com_port_8h_a8cc6d042f35aadef20feb961e7994206}
串口停止位值 